export default function myInstanceOf(left, right) {
    if (right === null) return false
    if (typeof left !== 'object' && typeof left !== 'function') return false
    if (typeof right !== 'object' && typeof right !== 'function') {
        throw TypeError('Right-Side must be a Object')
    }
    let proto = Object.getPrototypeOf(left)
    while (proto) {
        if (proto === right.prototype) return true
        proto = Object.getPrototypeOf(proto)
    }
    return false
}